package com.workflow.workflowproject.entity.mongoEntity;

import com.alibaba.fastjson2.JSONObject;
import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionField;
import com.anwen.mongo.annotation.collection.CollectionName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


@Data
@CollectionName(value = "flowValue")
public class FlowValue implements Serializable {
    @Serial
    private static final long serialVersionUID = 1127873283622973359L;
    @ID
    @Schema(description = "业务id(系统内部的业务ID，用于系统内部数据实现)")
    private String busKey;
    @CollectionField("flow_info_id")
    @Schema(description = "流程类型ID")
    private String flowInfoId;
    @CollectionField("value")
    @Schema(description = "值")
    private JSONObject value;
    @CollectionField("is_read_value")
    @Schema(description = "只读值")
    private String isReadValue;
    @CollectionField("process_instance_id")
    @Schema(description = "当前的流程实例id")
    private String processInstanceId;
}
